﻿<%@ Page Language="C#" MasterPageFile="~masterurl/custom.master" AutoEventWireup="true" 
  Inherits="Kiiro.SiteDefinition.PortalPages.AllUsers, Kiiro.SiteDefinition, Version=1.2.0.7, Culture=neutral, PublicKeyToken=5b2f4277f61b7816" %>

<%@ Register TagPrefix="SP" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="v2" TagName="Pager" Src="~/_controltemplates/Kiiro/Pager.ascx" %>
<asp:Content ID="ContentTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
  <asp:Literal ID="litTitle" runat="server" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
  <div class="body-pad">
    <div class="body">
      <div class="wrap">
        <div class="panel-pad">
          <div class="panel">
            <div class="panel-wrap">
              <div class="panel-title" id="columnHeaders" runat="server">
                <table class="table-users">
                  <tr>
                    <th class="image">
                    </th>
                    <th class="name">
                      <span>
                        <p class="sort">
                          <asp:LinkButton ID="lbNameSort" runat="server" OnClick="SortBy_Click" CommandArgument="Name">Name</asp:LinkButton><asp:Literal ID="nameSort"
                            runat="server" /></p>
                      </span>
                    </th>
                    <th class="contact">
                      Contact
                    </th>
                    <th class="company">
                      <span>
                        <p class="sort">
                          <asp:LinkButton ID="lbCompanySort" runat="server" OnClick="SortBy_Click" CommandArgument="Company">Company</asp:LinkButton><asp:Literal
                            ID="companySort" runat="server" /></p>
                      </span>
                    </th>
                    <th class="isadmin">
                      <span>
                        <p class="sort">
                          <asp:LinkButton ID="lbIsAdmin" runat="server" OnClick="SortBy_Click" CommandArgument="Admin">Is Admin</asp:LinkButton><asp:Literal
                            ID="adminSort" runat="server" /></p>
                      </span>
                    </th>
                  </tr>
                </table>
              </div>
              <div class="table">
                <table class="table-users">
                  <asp:Repeater ID="rptUsers" runat="server" OnItemDataBound="rptUsers_ItemDataBound">
                    <ItemTemplate>
                      <tr id="trUser" runat="server">
                        <td class="image">
                          <asp:LinkButton ID="btnPictureDisplayUser" runat="server" OnClick="btnDisplay_Click">
                            <asp:Image ID="imgPerson" runat="server" CssClass="userImgSmall" />
                          </asp:LinkButton>
                        </td>
                        <td class="name">
                          <h2>
                            <asp:LinkButton ID="btnLinkDisplayUser" runat="server" OnClick="btnDisplay_Click" /></h2>
                          <h3>
                            <asp:Label ID="lblTitle" runat="server" /></h3>
                          <h4>
                            <asp:Label ID="lblStatusMessage" runat="server" /></h4>
                        </td>
                        <td class="contact">
                          <ul>
                            <li><span class="highlight">Phone: </span>
                              <asp:Label ID="lblPhone" runat="server" /></li>
                            <li><span class="highlight">Email: </span>
                              <asp:HyperLink ID="lnkEmail" runat="server" /></li>
                            <li><span class="highlight">IM: </span>
                              <asp:Label ID="lblIM" runat="server" /></li>
                          </ul>
                        </td>
                        <td class="company">
                          <asp:Label ID="lblCompanyName" runat="server" />
                        </td>
                        <td class="isadmin">
                          <asp:Label ID="lblIsAdmin" runat="server" />
                        </td>
                        <td class="edit">
                          <asp:LinkButton ID="btnEdit" runat="server" Text="Edit" OnClick="btnEdit_Click" /><br />
                          <asp:LinkButton ID="btnDelete" runat="server" Text="Delete" OnClick="btnDelete_Click" OnClientClick="javascript: return confirm('Are you sure you want to delete this user?');" />
                        </td>
                      </tr>
                    </ItemTemplate>
                  </asp:Repeater>
                </table>
              </div>
            </div>
          </div>
          <v2:Pager id="v2Pager" runat="server" />
        </div>
      </div>
    </div>
  </div>
</asp:Content>
